package it.tukano.treditor.engine.scene;

import it.tukano.treditor.engine.geom.NTuple3;
import java.awt.Color;
import java.io.Serializable;

/**
 * A directional light
 * @author pgi
 */
public class DirectionalLightElement implements SceneElement, Serializable {
    
    /* default serial version uid*/
    private static final long serialVersionUID = 0;
    
    private NTuple3 direction;
    private SceneElement parent;
    private Color color;
    
    /**
     * Instance initializer
     */
    public DirectionalLightElement() {
    }
    
    public synchronized Color getColor() {
        return color;
    }
    
    public synchronized void setColor(Color color) {
        this.color = color;
    }
    
    public synchronized NTuple3 getDirection() {
        return direction;
    }
    
    public synchronized void setDirection(NTuple3 direction) {
        this.direction = direction;
    }

    public synchronized SceneElement getParent() {
        return parent;
    }

    public synchronized void setParent(SceneElement newParent) {
        this.parent = newParent;
    }

    public Type getType() {
        return Type.DIRECTIONAL_LIGHT;
    }

    @Override
    public String toString() {
        return "Directional Light";
    }
}
